<?
$annotationid=$_POST['hide'];
require 'dbconnect.inc.php';
$result=mysqli_query($link,"select * from content where id ='$annotationid'");
$row=mysqli_fetch_array($result);
$text=$row['text'];
$annotation=$row['annotation'];
$user=$row['user'];//change this to userid since user can have same anonymous name
$result1=mysqli_query($link,"select * from credential where user ='$user'");
$row=mysqli_fetch_array($result1);
$emailid=$row['emailid'];
echo $emailid;

mysqli_close($link);

?>
<html>
<body>
	<form action="" method=>
		annotationid<br><input type="text" value="<?php echo $annotationid;?>"><br>
		text<br><textarea> "<?php echo $text;?>"</textarea><br>
		annotation<br><textarea>"<?php echo $annotation;?>"</textarea><br>
		
		<input type="hidden" value="<?php echo $emailid;?>"><br>
		Enter your edits<br>
		<textarea></textarea><br>
		<input type="submit" value="send">
	</form>
</body>
</html>	